# # 1.导包
# import requests
#
#
# # 2.创建封装员工管理模块的类
# class EmpApi:
#     # 3.封装添加员工接口
#     def add_emp(self, token, json_dict):
#         return requests.post(url='http://ihrm-test.itheima.net/api/sys/user',
#                              json=json_dict,
#                              headers={"Authorization": token})
#
#     # 4.封装查询员工接口
#     def query_emp(self, token, emp_id):
#         return requests.get(url='http://ihrm-test.itheima.net/api/sys/user/' + str(emp_id),
#                             headers={"Authorization": token})
#
#     # 5.封装修改员工接口
#     def update_emp(self, token, json_dict, emp_id):
#         return requests.put(url='http://ihrm-test.itheima.net/api/sys/user/' + str(emp_id),
#                             json=json_dict,
#                             headers={"Authorization": token})
#
#     # 6.封装删除员工接口
#     def del_emp(self, token, emp_id):
#         return requests.delete(url='http://ihrm-test.itheima.net/api/sys/user/' + str(emp_id),
#                                headers={"Authorization": token})


import requests
class EmpApi:
    def add_emp(self,token,json_dict):
        return requests.post(url='http://ihrm-test.itheima.net/api/sys/user',
                             json=json_dict,
                             headers={"Authorization": token}))
    def query_emp(self)